#include <jni.h>
#include <string>
#include <android/log.h>
#include "AndHook.h"
#include "hook_test.h"
#include "hook_fork.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_pvdnc_systemdebugger_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    //AKSetCacheDirectory("/data/user/0/com.pvdnc.systemdebugger/cache");
    //JavaVM *vm= nullptr;
    /*if(env->GetJavaVM(&vm)==JNI_OK){
        if(AKInitializeOnce(env,vm)< JNI_OK){
            __android_log_print(ANDROID_LOG_ERROR,"AndHook","fail to initialize AndHook\n");
        }
    }*/

    //hook_test(env);
    //hook_fork_and_specialize(env);
    return env->NewStringUTF(hello.c_str());
}